package com.jiantong.work.enums;

/**
 * Created by mz on 17/5/17.
 *
 */
public enum ButcherReportCertStatus {

    HAS_PRINTED(1,"已打印"),
    HAS_NOT_PRINTED(-1,"未打印");
    private final Integer value;
    private final String description;

    ButcherReportCertStatus(Integer value, String description) {
        this.value = value;
        this.description = description;
    }

    public static ButcherReportCertStatus from(Integer value) {
        for (ButcherReportCertStatus butcherReportCertStatus : ButcherReportCertStatus.values()) {
            if (butcherReportCertStatus.value.equals(value)) {
                return butcherReportCertStatus;
            }
        }
        return null;
    }

    public Integer value() {
        return this.value;
    }

    @Override
    public String toString() {
        return description;
    }
}
